﻿using System.Web.Mvc;
using Sportsbook.Domain.Models.Bets;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Controllers
{
    public class BetsController : Controller
    {
        private readonly IBetsRepository repository;

        public BetsController(IBetsRepository repository)
        {
            this.repository = repository;
        }

        [HttpPost]
        public ActionResult PlaceBet(IBet model)
        {
            repository.Save(model, "cesarbmx");
            return View();
        }
    }
}
